<%@ Page Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true" CodeFile="shipment-cost-edit.aspx.cs" Inherits="admin_shipment_cost_edit" Title="Untitled Page" %>

<%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
<%@ Register Namespace="ECommerce.Library.Web" TagPrefix="ucc" %>
<%@ Register Src="~/controls/wucAdminValidator.ascx" TagName="AdminValidator" TagPrefix="wuc" %>
<asp:Content ID="cntMiddleContent" ContentPlaceHolderID="cphMiddleContent" runat="Server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td align="left" height="30" bgcolor="#f6f6f6" class="plnk" style="padding: 0 10px;">
                <a href="<%= AutoGear.BLL.CustomSiteMap.AdminHome %>">Dashboard</a> &raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.ShipmentCostList %>">
                    Shipment Cost List</a> &raquo; <a href="<%= AutoGear.BLL.CustomSiteMap.ShipmentCostEdit %>?cid=<%=_shipmentCostId.ToString() %>">
                        Edit Shipment Cost</a></td>
        </tr>
        <tr>
            <td height="10">
            </td>
        </tr>
        <tr>
            <td align="left" style="background: url(<%=rootPath %>images/admin/page-title-back.jpg);
                background-repeat: repeat-x;">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="10" align="left" style="height: 30px">
                            <img src="<%=rootPath %>images/admin/page-title-left.jpg" width="5" height="30" alt=" " /></td>
                        <td align="left" class="rate" style="height: 30px">
                            <strong>Edit Shipment Cost</strong></td>
                        <td width="10" align="right" style="height: 30px">
                            <img src="<%=rootPath %>images/admin/page-title-right.jpg" width="5" height="30"
                                alt=" " /></td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td align="center" style="padding: 10px;">
                <table width="100%" cellpadding="5" cellspacing="0" style="border: 1px solid #cacaca;">
                    <tbody>
                        <tr>
                            <td align="left" style="background-color: #f6f6f6; width: 200px;">
                            </td>
                            <td align="right" style="background-color: #f6f6f6">
                                <asp:ImageButton ID="imgSaveUp" runat="server" ImageUrl="~/images/admin/btn-save.jpg"
                                    AlternateText=" " Width="49px" Height="25px" OnClick="Update_Click" /></td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="center">
                                            <ucc:ResponseMessage ID="uccResponseMessage" runat="server"></ucc:ResponseMessage>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <table cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td align="left">
                                            <asp:ValidationSummary ID="ValidationSummary1" runat="server" EnableClientScript="true"
                                                DisplayMode="BulletList" ShowMessageBox="true" HeaderText="Please correct the following:"
                                                CssClass="adminValidator" Width="390px" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" align="center">
                                <table cellpadding="5" cellspacing="0">
                                    <tr>
                                        <td align="left">
                                            Price Range From</td>
                                        <td align="left">
                                            &nbsp;&nbsp;<asp:TextBox ID="tbxWeightRangeFrom" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator1"
                                                runat="server" ControlToValidate="tbxWeightRangeFrom" ErrorMessage="Weight Range From is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator2" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator1" ControlToValidate="tbxWeightRangeFrom"
                                                EnableClientScript="true" ErrorMessage="Incorrect Weight Format" SetFocusOnError="true"
                                                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="AdminValidator3" runat="server" />
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Price Range From</td>
                                        <td align="left">
                                            &nbsp;&nbsp;<asp:TextBox ID="tbxWeightRangeTo" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                                                runat="server" ControlToValidate="tbxWeightRangeTo" ErrorMessage="Weight Range To is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator4" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator2" ControlToValidate="tbxWeightRangeTo"
                                                EnableClientScript="true" ErrorMessage="Incorrect Weight Format" SetFocusOnError="true"
                                                ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="AdminValidator5" runat="server" />
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                   
                                    <tr>
                                        <td align="left">
                                            Standard Shipping Cost</td>
                                        <td align="left">
                                            $<asp:TextBox ID="tbxStandardShippingCost" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator4"
                                                runat="server" ControlToValidate="tbxStandardShippingCost" ErrorMessage="Standard Shipping Cost is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator8" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator4" ControlToValidate="tbxStandardShippingCost"
                                                EnableClientScript="true" ErrorMessage="Incorrect Standard Shipping Cost Format"
                                                SetFocusOnError="true" ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="AdminValidator9" runat="server" />
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Express Shipping Cost</td>
                                        <td align="left">
                                            $<asp:TextBox ID="tbxExpressShippingCost" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator5"
                                                runat="server" ControlToValidate="tbxExpressShippingCost" ErrorMessage="Express Shipping Cost is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator10" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator5" ControlToValidate="tbxExpressShippingCost"
                                                EnableClientScript="true" ErrorMessage="Incorrect Express Shipping Cost Format"
                                                SetFocusOnError="true" ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="AdminValidator11" runat="server" />
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Overnight Shipping Cost</td>
                                        <td align="left">
                                            $<asp:TextBox ID="tbxOvernightShippingCost" runat="server" CssClass="txtbox" Width="100px"></asp:TextBox>
                                            <span class="red">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator6"
                                                runat="server" ControlToValidate="tbxOvernightShippingCost" ErrorMessage="Overnight Shipping Cost is required"
                                                Display="dynamic" SetFocusOnError="true" EnableClientScript="true" Width="1px">
                                                <wuc:AdminValidator ID="AdminValidator1" runat="server" />
                                            </asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator runat="server" ID="RegularExpressionValidator6" ControlToValidate="tbxOvernightShippingCost"
                                                EnableClientScript="true" ErrorMessage="Incorrect Overnight Shipping Cost Format"
                                                SetFocusOnError="true" ValidationExpression="^([0-9]+)([.]([0-9]{2}))*$">
                                                <wuc:AdminValidator ID="Validator28" runat="server" />
                                            </asp:RegularExpressionValidator>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="left">
                                            Active</td>
                                        <td align="left">
                                            <asp:CheckBox ID="cbxIsActive" runat="server" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td align="left" class="smallred" style="background-color: #f6f6f6">
                            </td>
                            <td align="right" style="background-color: #f6f6f6">
                                <asp:ImageButton ID="imgSaveBottom" runat="server" ImageUrl="~/images/admin/btn-save.jpg"
                                    AlternateText=" " Width="49px" Height="25px" OnClick="Update_Click" /></td>
                        </tr>
                    </tbody>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>

